{include file="rootbase/head"}
<div class="">
    <div class="page-title">
      <div class="title_left">
        <h3>选手信息</h3>
      </div>
    
      <div style="position: absolute;left:500px;top: 10px;" >
        根据大赛查询参赛选手：
        <form action="http://www.tp5.com/vote/root/find" method="post">
          <select name="sid">
            {volist name="race" id='race'}
                      <option value="{$race.rid}">{$race.rname}</option>
            {/volist}
          </select>
          <input type="text" name="table" value="player" style="display: none;">
          <input type="submit" value="查询">
        </form>
      </div>

      <div style="position: absolute;left: 1100px;top: 20px;">
        <form action="http://www.tp5.com/vote/root/search" method="post">
          <input type="text" name="mess" placeholder="请输入想搜索的选手姓名">
          <input type="text" name="table" value="player" style="display: none;">
          <input type="submit" value="提交">
        </form>
      </div>
     
      
    
    <div class="clearfix"></div>

    <div class="row">
      <div class="col-md-12">
        <div class="x_panel">
          <div class="x_title">
            <div class="clearfix"></div>
          </div>
            <!-- start project list -->
            <table class="table table-striped projects">
              <thead>
                <tr>
                  <th style="width: 10%">选手编号</th>
                  <th style="width: 20%">头像</th>
                  <th>姓名</th>
                  <th>性别</th> 
                  <th>参赛作品</th> 
                  <th>介绍</th>
                  <th>参与赛事</th>
                  <th>组别</th>
                  <th style="width: 20%">操作</th>

                </tr>
              </thead>  
              <tbody>
                {volist name='data' id='da'}
                <tr>
                  <td>{$da.pid}</td>
                  <td>
                       <img src="/static/vote{$da.ppic}" alt="选手" style="border-radius: 50%;" width="80px" height="80px"> 
                  </td>
                  <td>
                    {$da.pname}
                  </td>
                  <td class="project_progress">
                    {$da.sex}
                  </td>
                  <td>
                    《{$da.work}》
                  </td>
                  <td>
                    {$da.introduce}
                  </td>
                  <td>
                    {$da.rname}
                  </td>
                  <td>
                    第{$da.group}组
                  </td>
                  <td>
                    <a href="http://www.tp5.com/vote/Root/delplayer?id={$da.pid}" class="btn btn-primary btn-xs">删除 </a>
                    <a href="http://www.tp5.com/vote/Root/editplayer?id={$da.pid}" class="btn btn-info btn-xs">编辑 </a>
                  </td>
                </tr>
                {/volist}     
              </tbody>
            </table>
            <!-- end project list -->
            <div>{$data->render()}</div>
          </div>
        </div>
      </div>
    </div>
  </div>

  {include file="rootbase/foot"}